package cn.swpu.dao.impl;

import cn.swpu.bose.DaoSupportImpl;
import cn.swpu.dao.UserDao;
import cn.swpu.domin.User;
import org.springframework.stereotype.Repository;


/**
 * Created by 11616 on 2016/7/8.
 */
@Deprecated
@Repository
public class UserdaoImpl extends DaoSupportImpl<User> implements UserDao {

    @Override
    public void delete(Long id) {
        User obj =  findById(id);
        if(obj != null){
            getSession().delete(obj);
        }
    }

}
